package org.lanqiao.controller;

import java.util.List;

import javax.servlet.http.HttpSession;

import org.apache.jasper.tagplugins.jstl.core.ForEach;
import org.lanqiao.entity.Service_list;
import org.lanqiao.entity.User;
import org.lanqiao.entity.Zfee;
import org.lanqiao.service.Service_listService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


@Controller
public class ServiceController {
	@Autowired
	Service_listService sls;
	
	@RequestMapping("service/servicelist")
	public String serviceList(Model model,HttpSession session)  {
		
		List<User> li = sls.selectUserService();
		/*List<Zfee> lz=zs.selectZfee();*/
		System.out.println(li);
		for(int i = 0 ; i < li.size() ; i++) {
			/*System.out.println(li.get(i).getService().getZfee());*/
		}
			
		
		
		model.addAttribute("li",li);
		return "service/service_list";
	}
	
	@RequestMapping("abc")
	public String serviceList()  {
		
		
		return "service/service_list";
	}
}
